|
RAIS
3.2
|
00001 using System; 00002 using System.Collections; 00003 using System.Configuration; 00004 using System.Data; 00005 using System.Linq; 00006 using System.Web; 00007 using System.Web.Security; 00008 using System.Web.UI; 00009 using System.Web.UI.HtmlControls; 00010 using System.Web.UI.WebControls; 00011 using System.Web.UI.WebControls.WebParts; 00012 using System.Xml.Linq; 00013 using RAIS.Common.UserManagement; 00014 00015 namespace RAIS.UI.SpecificMasks 00016 { 00017 public partial class EditDataRoles_New_Update4 : System.Web.UI.Page 00018 { 00019 #region PROPERTIES 00020 protected UserData CurrentUser 00021 { 00022 get { return (UserData)this.Session[UI.Common.Constants.CURRENT_USER_TAG]; } 00023 } 00024 00025 private string SelectedRestrictionID 00026 { 00027 get 00028 { 00029 return Request["restrictionID"]; 00030 } 00031 } 00032 00033 private string SelectedCategoryID 00034 { 00035 get 00036 { 00037 return Request["selectedCategoryID"]; 00038 } 00039 } 00040 00041 private string SelectedSubcategoryID 00042 { 00043 get 00044 { 00045 return Request["selectedSubcategoryID"]; 00046 } 00047 } 00048 00049 private string SelectedMaskID 00050 { 00051 get 00052 { 00053 return Request["selectedMaskID"]; 00054 } 00055 } 00056 #endregion 00057 00058 protected void Page_Load(object sender, EventArgs e) 00059 { 00060 this.Response.Cache.SetNoStore(); 00061 if (this.CurrentUser == null) 00062 UI.Common.AccessManagement.SignOut(this); 00063 00064 string returnMessage = String.Empty; 00065 DataRow restrictionRow = UI.Common.DataRoleRestrictionManagement.GetDataRoleRestriction(this.SelectedRestrictionID, ref returnMessage); 00066 string restrictionName = restrictionRow[0].ToString(); 00067 //LBLheader.Text = "Data Role Restriction: " + restrictionName; 00068 LBLrestrictionNameNoTranslation.Text = restrictionName; 00069 00070 UI.Common.Localisation.TranslateGridViewHeader(this.GVrestrictedMasks, this.ToString(), RAIS.Common.Constants.DEFAULT_LANGUAGE, this.CurrentUser.Language); 00071 UI.Common.DataRoleRestrictionManagement.GetRestrictedMasks(GVrestrictedMasks, restrictionRow, this.CurrentUser, this.SelectedRestrictionID, this.SelectedCategoryID, this.SelectedSubcategoryID, this.SelectedMaskID); 00072 00073 if (!this.IsPostBack) 00074 { 00075 this.LBLadmin.ForeColor = RAIS.UI.Common.Constants.COLOR_OF_MENU_BAR_TEXT_HIGHLIGHT; 00076 this.LBLusernameNoTranslation.Text = this.CurrentUser.Name; 00077 UI.Common.PageManagement.InitializePage(this, this.TreeView1); 00078 // UI.Common.Localisation.TranslatePage(this); 00079 UI.Common.PageManagement.InitHelpMainMenu(LBTNdefault); 00080 } 00081 } 00082 00083 protected void LBTNlogout_Click(object sender, EventArgs e) 00084 { 00085 UI.Common.AccessManagement.SignOut(this); 00086 } 00087 00088 protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e) 00089 { 00090 UI.Common.UserManagement.ProcessTreeViewOnRedirect(this.TreeView1); 00091 } 00092 } 00093 }